// filename: MainDialog.h
// author: enic
// date: 2015-11-05

#pragma once

#include "import_duilib.h"
#include "XDuiWndBase.h"
#include "MainListLayout.h"

namespace DuiLib
{

	class MainDialog : public XDuiWndBase
	{
	public:
		MainDialog();
		virtual ~MainDialog();

		DUI_DECLARE_MESSAGE_MAP()
		void OnBtnRecentlyList(TNotifyUI& notify);
		void OnBtnFriend(TNotifyUI& notify);
		void OnBtnGroup(TNotifyUI& notify);
	public:
		LPCTSTR GetWindowClassName() const;
		virtual CDuiString GetSkinFile();
		virtual CDuiString GetSkinFolder();
		virtual void InitWindow();
		virtual void OnFinalMessage(HWND hWnd);

	private:
		MainListLayout* m_pMainListLayout;
	};

}